$(function() {
	var c = 0;

	function run() {
		c++;
		c = (c == 5) ? 0 : c;
		$('#fk img').eq(c).fadeIn(500).siblings('img').fadeOut(500); //淡入淡出500毫秒
		$('#fk ul li').eq(c).css({
			'background': 'white'
		}).siblings('li').css({
			'background': 'rgba(255,255,255,0.4)'
		});
	}
	var interval = setInterval(run, 2000)
	$('#fk ul li').mouseenter(function() {
		clearInterval(interval);
		c = $(this).index();
		$('#fk img').eq(c).show().siblings('img').hide();
		$('#fk ul li').eq(c).css({
			'background': 'white'
		}).siblings('li').css({
			'background': 'rgba(255,255,255,0.4)'
		});
	})
	$('#fk ul li').mouseleave(function() {
		interval = setInterval(run, 2000);
	})

})
